export default {
  data() {
    return {
      currentPoliceItem: null,
      currentPoliceFeature: null,
      currentPoliceLists: [],
    }
  },
  methods: {
    /**
     * 关闭警员信息弹窗
     */
    closedPoliceWin() {
      this.gisIns.closeOverLay('policeInfoWin')
    },
    /**
     * 警员巡逻轨迹
     */
    onPatrolTrack(item) {
      let newRouter = this.$router.resolve({
        name: 'PolicePatrolTrack',
        query: {
          ...item
        }
      })
      this.$Bus.$emit('view', newRouter)
    },
    /**
     * 警员发消息，打电话，对讲
     * */
    onMessage(item, type) {
      let newRouter = {
        route: {
          name: 'CommunicationMessage',
          query: {
            pageType: type,
            ...item
          }
        }
      }
      this.$Bus.$emit('view', newRouter)
    },

    /**
     * 关闭警员列表弹窗
     */
    closedPoliceListsWin() {
      this.gisIns.closeOverLay('policeListsWin')
    },
    /**
     *
     */
    onLookPersonDetails(item) {
      this.$refs.personDetailsDailog && this.$refs.personDetailsDailog.show(item)
    }
  }
}
